package team.jaman.autosell.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import org.springframework.stereotype.Repository;
/**
 * 商品类
 * @author Administrator
 *
 */
@Repository
public class Product implements Serializable {
    // 商品编号
    private Integer productId;

    // 商品名称
    private String productName;

    // 商品单价
    private BigDecimal productPrice;

    // 商品库存
    private Integer productStock;

    // 商品图片
    private String productImg;

    // 商品位置
    private String productPosition;

    // serialVersionUID
    private static final long serialVersionUID = 1L;   
    
    /* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Product [productId=" + productId + ", productName=" + productName + ", productPrice=" + productPrice
				+ ", productStock=" + productStock + ", productImg=" + productImg + ", productPosition="
				+ productPosition + "]";
	}

	/**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column product.product_id
     *
     * @return the value of product.product_id
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public Integer getProductId() {
        return productId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column product.product_id
     *
     * @param productId the value for product.product_id
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column product.product_name
     *
     * @return the value of product.product_name
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public String getProductName() {
        return productName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column product.product_name
     *
     * @param productName the value for product.product_name
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setProductName(String productName) {
        this.productName = productName == null ? null : productName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column product.product_price
     *
     * @return the value of product.product_price
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public BigDecimal getProductPrice() {
        return productPrice;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column product.product_price
     *
     * @param productPrice the value for product.product_price
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column product.product_stock
     *
     * @return the value of product.product_stock
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public Integer getProductStock() {
        return productStock;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column product.product_stock
     *
     * @param productStock the value for product.product_stock
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setProductStock(Integer productStock) {
        this.productStock = productStock;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column product.product_img
     *
     * @return the value of product.product_img
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public String getProductImg() {
        return productImg;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column product.product_img
     *
     * @param productImg the value for product.product_img
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setProductImg(String productImg) {
        this.productImg = productImg == null ? null : productImg.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column product.product_position
     *
     * @return the value of product.product_position
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public String getProductPosition() {
        return productPosition;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column product.product_position
     *
     * @param productPosition the value for product.product_position
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setProductPosition(String productPosition) {
        this.productPosition = productPosition == null ? null : productPosition.trim();
    }
}